package jdx_04_线程状态;

import jdx_00_utils.JdxUtils;

public class Main {

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            for (int i = 0; i <10; i++) {
                JdxUtils.sleep(200); //2秒
            }
        });
        System.out.println("三秒之后获得线程的状态:");
        t1.start();
        System.out.println("[线程的状态]:"+t1.getState());
        System.out.println("正在等待3秒...");
        Thread.sleep(3000);
        System.out.println("[线程的状态]:"+t1.getState());
    }
}
